<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>管理员列表 - 非常日记管理后台</title>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
    <link rel="stylesheet" type="text/css" href="css/top.css"/>
    <link rel="stylesheet" type="text/css" href="css/left.css"/>
    <link rel="stylesheet" type="text/css" href="css/right.css"/>
</head>
<body>
<div id="container">
    <div id="header">
        <h1>博客管理系统</h1>
        <div id="login_info">
            欢迎你：<?php echo $_SESSION['admin_name']; ?>
            <a href="index.php?c=logout">退出登录</a>
        </div>
    </div>
    <div id="left">
        <ul>
            <li><a href="index.php?c=category_list">分类管理</a></li>
            <li><a href="index.php?c=article_list">文章管理</a></li>
            <li><a href="index.php?c=admin_list">管理员</a></li>
        </ul>
    </div>
    <div id="right">
        <div id="content">
            <div id="breadcrumb">
                <a href="index.php?c=article_list">首页</a> &gt;
                <a href="index.php?c=admin_list">管理员</a> &gt;
                <a href="index.php?c=admin_list">管理员列表</a>
            </div>

            <div id="choose_div">
                <!--                                <button id="choose-all" class="btn">全选</button>-->
                <!--                                <a href="#">删除选中任务</a>-->
                <a href="index.php?c=admin_add" class="add">增加管理员</a>
            </div>

            <table class="list">
                <tr>
                    <th></th>
                    <th>Id</th>
                    <th>名称</th>
                    <th>邮箱</th>
                    <th>增加时间</th>
                    <th>修改时间</th>
                    <th>操作</th>
                </tr>
                <?php foreach ($adminList as $row): ?>
                    <tr>
                        <td><input type="checkbox"/></td>
                        <td><?php echo $row['admin_id']; ?></td>
                        <td><?php echo $row['admin_name']; ?></td>
                        <td><?php echo $row['admin_email']; ?></td>
                        <td><?php echo date("Y-m-d H:i:s", $row['add_time']); ?></td>
                        <td><?php echo date("Y-m-d H:i:s", $row['update_time']); ?></td>
                        <td>
                            <a href="index.php?c=admin_edit&admin_id=<?php echo $row['admin_id']; ?>">编辑</a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </table>
        </div>
    </div>
</div>
</body>
</html>
